package `fun`.codedesign.kotlin.tools

object StringTools {

    @JvmStatic
    fun isEmpty(value: String?) = value == null || value.isBlank()

    @JvmStatic
    fun isNotEmpty(value: String?) = !isEmpty(value)

    @JvmStatic
    fun isNumber(value: String?) = value?.toIntOrNull() != null

    @JvmStatic
    fun isNotNumber(value: String?) = !isNumber(value)

}



